using Client.Base;
using UnityEngine;

namespace Client.Hotfix
{
    [UIPrefab("UIGuide",UILayer.Guide)]
    public class UIGuide : BaseUI
    {
        private HollowCircleMask mask;
        protected override void OnCreate()
        {
           mask = rc.Get<GameObject>("mask").GetComponent<HollowCircleMask>();
        }


        public void ShowGuideArea(RectTransform rect)
        {
            mask.ShowArea(rect);
            mask.gameObject.SetActive(true);
        }

        public void CloseGuideArea()
        {
            mask.gameObject.SetActive(false);
        }
    }

}
